/**
 * 
 */
package us.gaaoc.framework.dao;

import org.hibernate.Query;

import us.gaaoc.framework.model.VisualMarkCategory;

/**
 * @author Sukhada Tapshalkar
 *
 * Jan 2, 2008
 *
 * GAJE_BibbCounty_2.0
 *
 * TODO
 */
public class VisualMarkCategoryDAOHibernate extends
GenericHibernateDAO<VisualMarkCategory, Integer, VisualMarkCategoryDAO> implements
VisualMarkCategoryDAO{

	/* (non-Javadoc)
	 * @see us.gaaoc.framework.dao.VisualMarkCategoryDAO#getVisualMarkCategory(int)
	 */
	public VisualMarkCategory getVisualMarkCategory(int visualCategoryCode) {
		Query q = this.getSession().createQuery("from VisualMarkCategory crs where crs.code = ? ");
        q.setInteger(0, visualCategoryCode);
        return (VisualMarkCategory)q.uniqueResult();
	}

}
